package com.learn.annotation.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/03/08
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private Long id;
    @TableField("username")
    private String name;
    private String phone;
    @TableField(select = false)
    private String password;
    private String token;
    private Date createTime;
    @TableField(value = "is_deleted")
    @TableLogic
    private Boolean deleted;
}
